package Jets.events
{
	import flash.events.Event;
	
	public class JJoystickEvent extends Event
	{
		public static const ON_CONTROL_EVENT:String = "on_control_event";
		
		private var ms_nCode:String;
		public function JJoystickEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
		}
		
		public function set keyCode(value:String):void
		{
			ms_nCode = value;
		}
		public function get keyCode():String
		{
			return ms_nCode;
		}
		
		override public function clone():Event
		{
			var copy:JJoystickEvent = new JJoystickEvent(this.type,this.bubbles,this.cancelable);
			copy.keyCode = this.keyCode;
			return copy;
		}
	}
}